package com.sylli.oeuf.server.object.transferable;

public class NPCTO extends BasedTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4166723737413422893L;
	
	private int npcId;
	
	private String name;
	
	private int flag;
	
	public NPCTO() {
		// for flex uses.
	}
	
	@Override
	public String toString() {
		return "NPCTO: npcId=" + npcId
			+ ", name=" + name
			+ ", flag=" + flag;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof MonsterTO) {
			NPCTO cgi = (NPCTO) obj;
			return cgi.npcId == npcId
				&& cgi.name.equals(name)
				&& cgi.flag == flag;
		}
		return false;
	}

	public int getNpcId() {
		return npcId;
	}

	public void setNpcId(int npcId) {
		this.npcId = npcId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}
